﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;

namespace WebAppMatrix
{
    [Serializable]
    public class MatrixException : Exception
    {
        private int messageId;
        /// <summary>
        /// 得到异常信息的ID
        /// 默认值为0：未指明的错误信息，请参见错误描述。
        /// </summary>
        public int MessageId
        {
            get { return this.messageId; }
        }

        public MatrixException(string message, params object[] args)
            : base(string.Format(message, args))
        {
            messageId = 0;
        }

        public MatrixException(int messageId, string message, params object[] args)
            : base(string.Format(message, args))
        {
            this.messageId = messageId;
        }


    }
}
